package com.email.box.common.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

public class FilteredParameter {

    @ApiModelProperty(name = "page", value = "页数")
    @JsonProperty("page")
    private Long page;

    @ApiModelProperty(name = "limit", value = "行数")
    @JsonProperty("limit")
    private Long limit;

    @ApiModelProperty(name = "order", value = "排序")
    @JsonProperty("order")
    private String order;

    @ApiModelProperty(name = "search_field", value = "查询字段名")
    @JsonProperty("search_field")
    private String searchField;

    @ApiModelProperty(name = "search_type", value = "查询类型")
    @JsonProperty("search_type")
    private String searchType;

    @ApiModelProperty(name = "search_word", value = "查询字段值")
    @JsonProperty("search_word")
    private String searchWord;

    @ApiModelProperty(name = "response_field", value = "展示字段")
    @JsonProperty("response_field")
    private String responseField = "*";

    public FilteredParameter() {
        // 默认值
        this.page = 1L;
        this.limit = 10L;
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public Long getLimit() {
        return limit;
    }

    public void setLimit(Long limit) {
        this.limit = limit;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getSearchField() {
        return searchField;
    }

    public void setSearchField(String searchField) {
        this.searchField = searchField;
    }

    public String getSearchType() {
        return searchType;
    }

    public void setSearchType(String searchType) {
        this.searchType = searchType;
    }

    public String getSearchWord() {
        return searchWord;
    }

    public void setSearchWord(String searchWord) {
        this.searchWord = searchWord;
    }

    public String getResponseField() {
        return responseField;
    }

    public void setResponseField(String responseField) {
        this.responseField = responseField;
    }
}
